Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeLogical: fix retroactive conformance error. #1149

Conversation

TomerHacohen
Copy link
Contributor

@TomerHacohen TomerHacohen commented Jun 25, 2024

Fixes the warning in the new Swift version solved here:
swiftlang/swift#36068

Which is:

Extension declares a conformance of imported type 'X' to imported protocol 'Y'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future

without adding the @retroactive, which does not compile in Xcode 15.

This way, extensions that declares a conformance to a type where both are from another module will compile without warning in Xcode 16, as the conformed type is declared to be explicitly from the imported module, which suppresses the warning.

Copy link
Member

@younata younata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@younata younata merged commit 6ba9e68 into Quick:main Jun 25, 2024
16 checks passed
@TomerHacohen TomerHacohen deleted the feature/fix-retroactive-conformance-error-in-xcode16 branch June 26, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants